package me.ZFC.demo;

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        int i = getString().substring(1).replace("a", "b").length();
        System.out.println(i);
    }
    public static String getString(){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String s=sc.next();
        return s;
    }
}
